#ifndef ETHERCATDEVICECONFIGDLG_H
#define ETHERCATDEVICECONFIGDLG_H

#include <QDialog>
#include "../CommunicateDelegate/gSoapFoundation/soapStub.h"
#include <QStandardItem>
//using namespace hmigsoapnamespace;

namespace Ui {
class EthercatDeviceConfigDlg;
}

class EthercatDeviceConfigDlg : public QDialog
{
    Q_OBJECT

public:
    explicit EthercatDeviceConfigDlg(int styleId,QWidget *parent = 0);
    ~EthercatDeviceConfigDlg();

    void initialDisplayStyle(int styleId);
public:
    void showEthercatDeviceInfo(std::vector<EcatBusDevInfo_gsoap> slavesInfo );

signals:
    void writeEthercatDeviceAliasSignal(int nodeId,int alias);
    void getEthercatSlavesInformationSignal();
    void setMotorDcModeSignal(int value);
    void clearMotorBatteryErrorSignal();


private slots:
    void on_pushButton_hide_clicked();

    void on_pushButton_writeAlias_clicked();

    void on_pushButton_getSlavesInfo_clicked();


private:
    Ui::EthercatDeviceConfigDlg *ui;
    QStandardItemModel* model_ethercatSlavesInfo;
};

#endif // ETHERCATDEVICECONFIGDLG_H
